3.1.86 \(\int x^{-1-n} \sinh ^3(a+b x^n) \, dx\) [86]

Optimal. Leaf size=113 \[ -\frac {3 b \cosh (a) \text {Chi}\left (b x^n\right )}{4 n}+\frac {3 b \cosh (3 a) \text {Chi}\left (3 b x^n\right )}{4 n}+\frac {3 x^{-n} \sinh \left (a+b x^n\right )}{4 n}-\frac {x^{-n} \sinh \left (3 \left (a+b x^n\right )\right )}{4 n}-\frac {3 b \sinh (a) \text {Shi}\left (b x^n\right )}{4 n}+\frac {3 b \sinh (3 a) \text {Shi}\left (3 b x^n\right )}{4 n} \]

[Out]

-3/4*b*Chi(b*x^n)*cosh(a)/n+3/4*b*Chi(3*b*x^n)*cosh(3*a)/n-3/4*b*Shi(b*x^n)*sinh(a)/n+3/4*b*Shi(3*b*x^n)*sinh(
3*a)/n+3/4*sinh(a+b*x^n)/n/(x^n)-1/4*sinh(3*a+3*b*x^n)/n/(x^n)

________________________________________________________________________________________

Rubi [A]
time = 0.16, antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {5470, 5428, 3378, 3384, 3379, 3382} \begin {gather*} -\frac {3 b \cosh (a) \text {Chi}\left (b x^n\right )}{4 n}+\frac {3 b \cosh (3 a) \text {Chi}\left (3 b x^n\right )}{4 n}-\frac {3 b \sinh (a) \text {Shi}\left (b x^n\right )}{4 n}+\frac {3 b \sinh (3 a) \text {Shi}\left (3 b x^n\right )}{4 n}+\frac {3 x^{-n} \sinh \left (a+b x^n\right )}{4 n}-\frac {x^{-n} \sinh \left (3 \left (a+b x^n\right )\right )}{4 n} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^(-1 - n)*Sinh[a + b*x^n]^3,x]

[Out]

(-3*b*Cosh[a]*CoshIntegral[b*x^n])/(4*n) + (3*b*Cosh[3*a]*CoshIntegral[3*b*x^n])/(4*n) + (3*Sinh[a + b*x^n])/(
4*n*x^n) - Sinh[3*(a + b*x^n)]/(4*n*x^n) - (3*b*Sinh[a]*SinhIntegral[b*x^n])/(4*n) + (3*b*Sinh[3*a]*SinhIntegr
al[3*b*x^n])/(4*n)

Rule 3378

Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[(c + d*x)^(m + 1)*(Sin[e + f*x]/(d*(m
 + 1))), x] - Dist[f/(d*(m + 1)), Int[(c + d*x)^(m + 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && LtQ[
m, -1]

Rule 3379

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[I*(SinhIntegral[c*f*(fz/
d) + f*fz*x]/d), x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*e - c*f*fz*I, 0]

Rule 3382

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CoshIntegral[c*f*(fz/d)
+ f*fz*x]/d, x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*(e - Pi/2) - c*f*fz*I, 0]

Rule 3384

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[c*(f/d) + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[c*(f/d) + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]

Rule 5428

Int[(x_)^(m_.)*((a_.) + (b_.)*Sinh[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simpli
fy[(m + 1)/n] - 1)*(a + b*Sinh[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IntegerQ[Sim
plify[(m + 1)/n]] && (EqQ[p, 1] || EqQ[m, n - 1] || (IntegerQ[p] && GtQ[Simplify[(m + 1)/n], 0]))

Rule 5470

Int[((e_.)*(x_))^(m_.)*((a_.) + (b_.)*Sinh[(c_.) + (d_.)*(x_)^(n_)])^(p_), x_Symbol] :> Int[ExpandTrigReduce[(
e*x)^m, (a + b*Sinh[c + d*x^n])^p, x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && IGtQ[p, 0]

Rubi steps

\begin {align*} \int x^{-1-n} \sinh ^3\left (a+b x^n\right ) \, dx &=\int \left (-\frac {3}{4} x^{-1-n} \sinh \left (a+b x^n\right )+\frac {1}{4} x^{-1-n} \sinh \left (3 a+3 b x^n\right )\right ) \, dx\\ &=\frac {1}{4} \int x^{-1-n} \sinh \left (3 a+3 b x^n\right ) \, dx-\frac {3}{4} \int x^{-1-n} \sinh \left (a+b x^n\right ) \, dx\\ &=\frac {\text {Subst}\left (\int \frac {\sinh (3 a+3 b x)}{x^2} \, dx,x,x^n\right )}{4 n}-\frac {3 \text {Subst}\left (\int \frac {\sinh (a+b x)}{x^2} \, dx,x,x^n\right )}{4 n}\\ &=\frac {3 x^{-n} \sinh \left (a+b x^n\right )}{4 n}-\frac {x^{-n} \sinh \left (3 \left (a+b x^n\right )\right )}{4 n}-\frac {(3 b) \text {Subst}\left (\int \frac {\cosh (a+b x)}{x} \, dx,x,x^n\right )}{4 n}+\frac {(3 b) \text {Subst}\left (\int \frac {\cosh (3 a+3 b x)}{x} \, dx,x,x^n\right )}{4 n}\\ &=\frac {3 x^{-n} \sinh \left (a+b x^n\right )}{4 n}-\frac {x^{-n} \sinh \left (3 \left (a+b x^n\right )\right )}{4 n}-\frac {(3 b \cosh (a)) \text {Subst}\left (\int \frac {\cosh (b x)}{x} \, dx,x,x^n\right )}{4 n}+\frac {(3 b \cosh (3 a)) \text {Subst}\left (\int \frac {\cosh (3 b x)}{x} \, dx,x,x^n\right )}{4 n}-\frac {(3 b \sinh (a)) \text {Subst}\left (\int \frac {\sinh (b x)}{x} \, dx,x,x^n\right )}{4 n}+\frac {(3 b \sinh (3 a)) \text {Subst}\left (\int \frac {\sinh (3 b x)}{x} \, dx,x,x^n\right )}{4 n}\\ &=-\frac {3 b \cosh (a) \text {Chi}\left (b x^n\right )}{4 n}+\frac {3 b \cosh (3 a) \text {Chi}\left (3 b x^n\right )}{4 n}+\frac {3 x^{-n} \sinh \left (a+b x^n\right )}{4 n}-\frac {x^{-n} \sinh \left (3 \left (a+b x^n\right )\right )}{4 n}-\frac {3 b \sinh (a) \text {Shi}\left (b x^n\right )}{4 n}+\frac {3 b \sinh (3 a) \text {Shi}\left (3 b x^n\right )}{4 n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.14, size = 95, normalized size = 0.84 \begin {gather*} -\frac {x^{-n} \left (3 b x^n \cosh (a) \text {Chi}\left (b x^n\right )-3 b x^n \cosh (3 a) \text {Chi}\left (3 b x^n\right )-3 \sinh \left (a+b x^n\right )+\sinh \left (3 \left (a+b x^n\right )\right )+3 b x^n \sinh (a) \text {Shi}\left (b x^n\right )-3 b x^n \sinh (3 a) \text {Shi}\left (3 b x^n\right )\right )}{4 n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 - n)*Sinh[a + b*x^n]^3,x]

[Out]

-1/4*(3*b*x^n*Cosh[a]*CoshIntegral[b*x^n] - 3*b*x^n*Cosh[3*a]*CoshIntegral[3*b*x^n] - 3*Sinh[a + b*x^n] + Sinh
[3*(a + b*x^n)] + 3*b*x^n*Sinh[a]*SinhIntegral[b*x^n] - 3*b*x^n*Sinh[3*a]*SinhIntegral[3*b*x^n])/(n*x^n)

________________________________________________________________________________________

Maple [A]
time = 3.28, size = 152, normalized size = 1.35

method result size
risch \(\frac {{\mathrm e}^{-3 a -3 b \,x^{n}} x^{-n}}{8 n}-\frac {3 b \,{\mathrm e}^{-3 a} \expIntegral \left (1, 3 b \,x^{n}\right )}{8 n}-\frac {3 \,{\mathrm e}^{-a -b \,x^{n}} x^{-n}}{8 n}+\frac {3 b \,{\mathrm e}^{-a} \expIntegral \left (1, b \,x^{n}\right )}{8 n}-\frac {x^{-n} {\mathrm e}^{3 a +3 b \,x^{n}}}{8 n}-\frac {3 b \,{\mathrm e}^{3 a} \expIntegral \left (1, -3 b \,x^{n}\right )}{8 n}+\frac {3 \,{\mathrm e}^{a +b \,x^{n}} x^{-n}}{8 n}+\frac {3 b \,{\mathrm e}^{a} \expIntegral \left (1, -b \,x^{n}\right )}{8 n}\) \(152\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(-1-n)*sinh(a+b*x^n)^3,x,method=_RETURNVERBOSE)

[Out]

1/8/n*exp(-3*a-3*b*x^n)/(x^n)-3/8/n*b*exp(-3*a)*Ei(1,3*b*x^n)-3/8/n*exp(-a-b*x^n)/(x^n)+3/8/n*b*exp(-a)*Ei(1,b
*x^n)-1/8/(x^n)*exp(3*a+3*b*x^n)/n-3/8/n*b*exp(3*a)*Ei(1,-3*b*x^n)+3/8*exp(a+b*x^n)/(x^n)/n+3/8/n*b*exp(a)*Ei(
1,-b*x^n)

________________________________________________________________________________________

Maxima [A]
time = 0.36, size = 70, normalized size = 0.62 \begin {gather*} \frac {3 \, b e^{\left (-3 \, a\right )} \Gamma \left (-1, 3 \, b x^{n}\right )}{8 \, n} - \frac {3 \, b e^{\left (-a\right )} \Gamma \left (-1, b x^{n}\right )}{8 \, n} - \frac {3 \, b e^{a} \Gamma \left (-1, -b x^{n}\right )}{8 \, n} + \frac {3 \, b e^{\left (3 \, a\right )} \Gamma \left (-1, -3 \, b x^{n}\right )}{8 \, n} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1-n)*sinh(a+b*x^n)^3,x, algorithm="maxima")

[Out]

3/8*b*e^(-3*a)*gamma(-1, 3*b*x^n)/n - 3/8*b*e^(-a)*gamma(-1, b*x^n)/n - 3/8*b*e^a*gamma(-1, -b*x^n)/n + 3/8*b*
e^(3*a)*gamma(-1, -3*b*x^n)/n

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 303 vs. \(2 (102) = 204\).
time = 0.42, size = 303, normalized size = 2.68 \begin {gather*} -\frac {2 \, \sinh \left (b \cosh \left (n \log \left (x\right )\right ) + b \sinh \left (n \log \left (x\right )\right ) + a\right )^{3} - 3 \, {\left ({\left (b \cosh \left (3 \, a\right ) + b \sinh \left (3 \, a\right )\right )} \cosh \left (n \log \left (x\right )\right ) + {\left (b \cosh \left (3 \, a\right ) + b \sinh \left (3 \, a\right )\right )} \sinh \left (n \log \left (x\right )\right )\right )} {\rm Ei}\left (3 \, b \cosh \left (n \log \left (x\right )\right ) + 3 \, b \sinh \left (n \log \left (x\right )\right )\right ) + 3 \, {\left ({\left (b \cosh \left (a\right ) + b \sinh \left (a\right )\right )} \cosh \left (n \log \left (x\right )\right ) + {\left (b \cosh \left (a\right ) + b \sinh \left (a\right )\right )} \sinh \left (n \log \left (x\right )\right )\right )} {\rm Ei}\left (b \cosh \left (n \log \left (x\right )\right ) + b \sinh \left (n \log \left (x\right )\right )\right ) + 3 \, {\left ({\left (b \cosh \left (a\right ) - b \sinh \left (a\right )\right )} \cosh \left (n \log \left (x\right )\right ) + {\left (b \cosh \left (a\right ) - b \sinh \left (a\right )\right )} \sinh \left (n \log \left (x\right )\right )\right )} {\rm Ei}\left (-b \cosh \left (n \log \left (x\right )\right ) - b \sinh \left (n \log \left (x\right )\right )\right ) - 3 \, {\left ({\left (b \cosh \left (3 \, a\right ) - b \sinh \left (3 \, a\right )\right )} \cosh \left (n \log \left (x\right )\right ) + {\left (b \cosh \left (3 \, a\right ) - b \sinh \left (3 \, a\right )\right )} \sinh \left (n \log \left (x\right )\right )\right )} {\rm Ei}\left (-3 \, b \cosh \left (n \log \left (x\right )\right ) - 3 \, b \sinh \left (n \log \left (x\right )\right )\right ) + 6 \, {\left (\cosh \left (b \cosh \left (n \log \left (x\right )\right ) + b \sinh \left (n \log \left (x\right )\right ) + a\right )^{2} - 1\right )} \sinh \left (b \cosh \left (n \log \left (x\right )\right ) + b \sinh \left (n \log \left (x\right )\right ) + a\right )}{8 \, {\left (n \cosh \left (n \log \left (x\right )\right ) + n \sinh \left (n \log \left (x\right )\right )\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1-n)*sinh(a+b*x^n)^3,x, algorithm="fricas")

[Out]

-1/8*(2*sinh(b*cosh(n*log(x)) + b*sinh(n*log(x)) + a)^3 - 3*((b*cosh(3*a) + b*sinh(3*a))*cosh(n*log(x)) + (b*c
osh(3*a) + b*sinh(3*a))*sinh(n*log(x)))*Ei(3*b*cosh(n*log(x)) + 3*b*sinh(n*log(x))) + 3*((b*cosh(a) + b*sinh(a
))*cosh(n*log(x)) + (b*cosh(a) + b*sinh(a))*sinh(n*log(x)))*Ei(b*cosh(n*log(x)) + b*sinh(n*log(x))) + 3*((b*co
sh(a) - b*sinh(a))*cosh(n*log(x)) + (b*cosh(a) - b*sinh(a))*sinh(n*log(x)))*Ei(-b*cosh(n*log(x)) - b*sinh(n*lo
g(x))) - 3*((b*cosh(3*a) - b*sinh(3*a))*cosh(n*log(x)) + (b*cosh(3*a) - b*sinh(3*a))*sinh(n*log(x)))*Ei(-3*b*c
osh(n*log(x)) - 3*b*sinh(n*log(x))) + 6*(cosh(b*cosh(n*log(x)) + b*sinh(n*log(x)) + a)^2 - 1)*sinh(b*cosh(n*lo
g(x)) + b*sinh(n*log(x)) + a))/(n*cosh(n*log(x)) + n*sinh(n*log(x)))

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1-n)*sinh(a+b*x**n)**3,x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 3005 deep

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1-n)*sinh(a+b*x^n)^3,x, algorithm="giac")

[Out]

integrate(x^(-n - 1)*sinh(b*x^n + a)^3, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {sinh}\left (a+b\,x^n\right )}^3}{x^{n+1}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(a + b*x^n)^3/x^(n + 1),x)

[Out]

int(sinh(a + b*x^n)^3/x^(n + 1), x)

________________________________________________________________________________________